/* 自行去.\plugins\earth-k-plugin\apps\shareMusic.js
   把正则换成
   reg: '^#点歌|#听( )?[1-9][0-9]*$',
*/

export default class Button {
    constructor () {
      this.plugin = {
        name: '土块点歌',
        dsc: '土块点歌',
        priority: 102,
        rule: [
            {
                reg: '^#点歌|#听( )?[1-9][0-9]*$',
                fnc: 'shareMusic'
            },
        ]
      }
    }
    shareMusic (e) {
    const button = [
      [
        { label: `点歌`, data: `/点歌` },
        { label: `听`, data: `/听` },
      ]
    ]
    return Bot.Button(button)
  }
}